<?php

$s_good = $this->Session->flash('good');
$s_bad = $this->Session->flash('bad');
if($s_good || $s_bad){            
    if($s_good){
    ?>    
<div class="m-mox">
    <div class="alert alert-success alert-dismissible fade in" role="alert">
        <button type="button" class="close" data-dismiss="alert"><span aria-hidden="true">×</span><span class="sr-only">Close</span></button>
      <?php echo $s_good;?>
    </div>
</div>

    <?php }else{ ?>
<div class="m-mox">
    <div class="alert alert-danger alert-dismissible fade in" role="alert">
        <button type="button" class="close" data-dismiss="alert"><span aria-hidden="true">×</span><span class="sr-only">Close</span></button>
      <?php echo $s_bad;?>
    </div>
</div>
    <?php }
}
        ?>